import $http from '@/http'

//获得任务分页
export const taskPage = (params, success) => $http.get('/app-api/recep/task/page', params, success)

//获得迎宾任务
export const taskGetById = (id, success) => $http.get('/app-api/recep/task/get?id=' + id, success)

// 我的任务订阅
export const mySubscription = (params, success) => $http.get('/app-api/recep/task-subscription/mySubscription', params, success)

//保存任务订阅
export const subscriptionSave = (data, success) => $http.post('/app-api/recep/task-subscription/save', data, success)

const xiaoluBaseURL = 'https://qywx.xiaoluxueche.com:3006/znkf'
export const dialogueMobAudio = (data, type) => $http.postPromise(xiaoluBaseURL + '/admin-api/aiSsistant/dialogueMobAudio', data, type)
